package com.example.edu.Service;

import com.example.edu.Dto.CourseCreateDtoG;
import com.example.edu.Dto.ListDtoG;
import com.example.edu.Dto.Return;
import com.example.edu.Entity.Course;

import javax.servlet.http.HttpServletRequest;

public interface CourseService {
    Return create(HttpServletRequest request, CourseCreateDtoG createData);

    Return getList(HttpServletRequest request, ListDtoG listData);

    Return delete(Course courseId);

    Return update(Course course);

    Return join(HttpServletRequest httpServletRequest, Course inviteCode);

    Return out(HttpServletRequest httpServletRequest, Course courseId);

    Return get(Course course);
}
